package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_activity_sign_in_times", autoSave = true)
public class LogActivitySignInTimeChange {

    @FieldTypeAnnotation(isIndex = true)
    int activityId;

    @FieldTypeAnnotation(isIndex = true)
    long userId;

    @FieldTypeAnnotation(desc = "1: 获得；0：失去")
    int getType;

    @FieldTypeAnnotation(desc = "数量")
    int num;

    @FieldTypeAnnotation(desc = "当前数量")
    int nowNum;

    @FieldTypeAnnotation(desc = "1：签到获得；2：分享获得；3：抽奖消耗；4：过期重置；5：在线时长")
    int wayType;

    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogActivitySignInTimeChange(int activityId, long userId, int getType, int num, int nowNum, int wayType) {
        this.activityId = activityId;
        this.userId = userId;
        this.getType = getType;
        this.num = num;
        this.nowNum = nowNum;
        this.wayType = wayType;
        this.time = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getGetType() {
        return getType;
    }

    public void setGetType(int getType) {
        this.getType = getType;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getNowNum() {
        return nowNum;
    }

    public void setNowNum(int nowNum) {
        this.nowNum = nowNum;
    }

    public int getWayType() {
        return wayType;
    }

    public void setWayType(int wayType) {
        this.wayType = wayType;
    }


    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
